﻿using System;
using UnityEngine;
using UnityEngine.SceneManagement;

// Token: 0x02000200 RID: 512
public class EnvSound : MonoBehaviour
{
	// Token: 0x06000E13 RID: 3603 RVA: 0x00057DB4 File Offset: 0x00055FB4
	private void Awake()
	{
		this.isADV = (SceneManager.GetActiveScene().name.IndexOf("ADV") == 0);
		this.audio = base.GetComponent<AudioSource>();
		this.Volume();
	}

	// Token: 0x06000E14 RID: 3604 RVA: 0x00057DF4 File Offset: 0x00055FF4
	private void Update()
	{
		this.Volume();
	}

	// Token: 0x06000E15 RID: 3605 RVA: 0x00057DFC File Offset: 0x00055FFC
	private void Volume()
	{
		this.audio.volume = ((!this.isADV) ? ConfigData.VolumeEnv() : 0f);
	}

	// Token: 0x04000E82 RID: 3714
	private AudioSource audio;

	// Token: 0x04000E83 RID: 3715
	private bool isADV;
}
